package dietmar.ckm;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class KlubGui extends JFrame {

	private JPanel contentPane;
	private JTextField txtNazwa;
	private JTextField thtRokZalozenia;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					KlubGui frame = new KlubGui();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public KlubGui() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblKlub = new JLabel("Klub");
		lblKlub.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblKlub.setBounds(10, 11, 46, 25);
		contentPane.add(lblKlub);
		
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(Color.BLUE));
		panel.setBounds(10, 47, 311, 107);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JLabel label = new JLabel("Nazwa");
		label.setBounds(10, 14, 68, 14);
		panel.add(label);
		
		JLabel label_1 = new JLabel("Rok zalozenia");
		label_1.setBounds(10, 39, 68, 14);
		panel.add(label_1);
		
		txtNazwa = new JTextField();
		txtNazwa.setColumns(10);
		txtNazwa.setBounds(88, 11, 150, 20);
		panel.add(txtNazwa);
		
		thtRokZalozenia = new JTextField();
		thtRokZalozenia.setBounds(88, 36, 150, 20);
		panel.add(thtRokZalozenia);
		thtRokZalozenia.setColumns(10);
		
		JButton btnDodajDruzyne = new JButton("Dodaj druzyne");
		btnDodajDruzyne.setBounds(10, 193, 109, 62);
		contentPane.add(btnDodajDruzyne);
		
		JButton btnUsunKlub = new JButton("Usun klub");
		btnUsunKlub.setBounds(323, 193, 109, 62);
		contentPane.add(btnUsunKlub);
	}

}
